package com.onepower.core.domain.mapper;

import com.onepower.core.domain.AuthUser;
import com.onepower.core.domain.response.SysUserInfo;
import com.onepower.core.modules.repository.entity.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author kin
 * @since 2017/12/11
 */
@Mapper
public interface SysUserInfoMapper {

    SysUserInfoMapper MAPPER = Mappers.getMapper(SysUserInfoMapper.class);

    AuthUser converterAuth(SysUser sysUser);

    SysUserInfo converter(SysUser sysUser);

    List<SysUserInfo> converterList(List<SysUser> sysUserList);
}
